package cn.stylefeng.guns.modular.shuheng.service;

import cn.stylefeng.guns.modular.shuheng.entity.Score;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.stylefeng.guns.modular.shuheng.mapper.ScoreMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import java.util.Map;
import cn.stylefeng.guns.core.common.page.LayuiPageFactory;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhengpp
 * @since 2021-08-26
 */
@Service
public class ScoreService extends ServiceImpl<ScoreMapper,Score> {
    public Page<Map<String,Object>> listScore(Long fileId,Integer userLevel) {
        Page page = LayuiPageFactory.defaultPage();
        return this.baseMapper.selectScore(page,fileId,userLevel);
    }
}
